import 'package:tin_flutter/generated/json/base/json_field.dart';
import 'package:tin_flutter/generated/json/login_response_entity.g.dart';
import 'dart:convert';
export 'package:tin_flutter/generated/json/login_response_entity.g.dart';

/// * 作者: Tao
/// * 日期: 2025/9/23
/// * 时间: 12:09
/// * 描述: 登录返回实体
@JsonSerializable()
class LoginResponseEntity {
	late String bindName = '';
	late String nickName = '';
	late String id = '';
	late int type = 0;
	late String bindId = '';
	late String username = '';

	LoginResponseEntity();

	factory LoginResponseEntity.fromJson(Map<String, dynamic> json) => $LoginResponseEntityFromJson(json);

	Map<String, dynamic> toJson() => $LoginResponseEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}